package com.school.repair.dao;


import com.school.repair.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {
    Admin login(@Param("username") String username, @Param("password")String password);

    Admin findById(@Param("id") long id);

    Admin adminVerification(@Param("id") long id, @Param("pass") String pass);

    int updatePass(@Param("id") long id, @Param("pass") String pass);

    int updateData(@Param("id") long id, @Param("name") String name, @Param("tele") String tele);

    List<Admin> adminList(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("username") String name, @Param("tele") String tele);

    int adminListTotal(@Param("username") String name, @Param("tele") String tele);

    int checking(@Param("username") String username);

    int  adminAdd(Admin admin);

    int delAdmin(long id);
}
